<table id="background-image">
  <tr>
    <th>Name</th>
    <th>Url</th>
    <th>Rating</th>
    <th></th>
    <th></th>
  </tr>

  <% Sound.where(:userid => @user.id.to_s).each do |sound| %>
  <tr>
    <td><%= sound.name %></td>
    <td><%= sound.url %></td>
    <td>
    <%= form_for(sound) do |f| %>
     <%= f.select :rating,options_for_select([["yet to rate",0],["superb", 3], ["it's ok", 2],["bad",1]],sound.rating) %>
      <%= f.submit "update" %>
    <% end %>
    </td>
    <td><%= link_to 'Play', sound %></td>
    <td><%= link_to 'I don\'t belong here', sound, :method => :delete, :data => { :confirm => 'sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

